<?php

class Application_Form_Testimony extends Zend_Form
{
    

    public function init()
    {
        //Hidden text field to pass id value
        //ID must be integer
        $id = new Zend_Form_Element_Hidden("id");
        $id->addFilter("Int");

       
        

        //Testimonies form
        $testimonydescription = new Zend_Form_Element_TextArea("Testimoni");
        $testimonydescription->setLabel("Masukan Testimoni")
             ->addFilter("StripTags")
             ->addFilter("StringTrim")
             ->setAttrib("cols","70")
             ->setAttrib("rows","3");

       
        //Submit button
        $submit = new Zend_Form_Element_Submit("submit");
        $submit->setAttrib("id","submit");

        //Reset button
        $reset = new Zend_Form_Element_Reset("reset");
        $reset->setAttrib("id","reset");

        //Add all elements to form
        $this->addElements(array($id,$testimonydescription,
            $submit,$reset));
    }


}

